package com.express.ExpInsuranceLog.bean;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "exp_insurance_log")
public class ExpInsuranceLog implements BaseEntity{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;

    private String expReleaseId;//快递订单ID

    private Integer type;//类型：1-运费险进账，2-赔付运费出账，3-运费险出账

    private BigDecimal insuranceMoney;//交易金额(元)

    private BigDecimal insuranceScale;//交易比例

    private BigDecimal afterBalance;//交易后运费险账户余额

    private Date tradeTime;//交易时间

    private String remake;//备注

    @Override
    public void setId(String id) { this.id = id; }
    public void setExpReleaseId(String expReleaseId) { this.expReleaseId = expReleaseId; }
    public void setType(Integer type) { this.type = type; }
    public void setInsuranceMoney(BigDecimal insuranceMoney) { this.insuranceMoney = insuranceMoney; }
    public void setInsuranceScale(BigDecimal insuranceScale) { this.insuranceScale = insuranceScale; }
    public void setAfterBalance(BigDecimal afterBalance) { this.afterBalance = afterBalance; }
    public void setTradeTime(Date tradeTime) { this.tradeTime = tradeTime; }
    public void setRemake(String remake) { this.remake = remake; }

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="exp_release_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getExpReleaseId() { return expReleaseId; }
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=2)
    public Integer getType() { return type; }
    @Column(name ="insurance_money",unique=false,nullable=true,insertable=true,updatable=true,length=12)
    public BigDecimal getInsuranceMoney() { return insuranceMoney; }
    @Column(name ="insurance_scale",unique=false,nullable=true,insertable=true,updatable=true,length=12)
    public BigDecimal getInsuranceScale() { return insuranceScale; }
    @Column(name ="after_balance",unique=false,nullable=true,insertable=true,updatable=true,length=12)
    public BigDecimal getAfterBalance() { return afterBalance; }
    @Column(name ="trade_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public Date getTradeTime() { return tradeTime; }
    @Column(name ="remake",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getRemake() { return remake; }

}
